package com.mapResult.controller;

public enum FzysType {
    ;

    FzysType() {

    }

    public enum DirectionEnum {
        LEFT("left", 0), RIGHT("right", 1);

        private String direction;
        private int value;

        DirectionEnum(String direction, int value) {
            this.direction = direction;
            this.value = value;
        }

        public int getValue() {
            return this.value;
        }
    }

    public enum SipStatus {
        RELEASE(0, "解锁"), LOCK(1, "锁定");

        private Integer code;
        private String direction;

        SipStatus(Integer code, String direction) {
            this.code = code;
            this.direction = direction;
        }

        public Integer getCode() {
            return this.code;
        }

        public String getDirection() {
            return this.direction;
        }

        public static String findByCode(Integer code) {
            for (SipStatus value : SipStatus.values()) {
                if (value.getCode().equals(code)) {
                    return value.getDirection();
                }
            }
            return null;
        }
    }

    public enum Setting_Type {

        MAP_SETTING(1, "地图设置"),
        ACCOUNT_SETTING(2, "对接账户设置"),
        APP_SETTING(3, "app参数设置"),
        INDEX_SETTING(4, "首页参数设置"),
        WAITING_ROOM_SETTING(5, "候车室设置");

        private Integer code;
        private String describe;

        Setting_Type(Integer code, String describe) {
            this.code = code;
            this.describe = describe;
        }

        public Integer getCode() {
            return this.code;
        }

        public String getDescribe() {
            return this.describe;
        }

        public static String findByCode(Integer code) {
            for (Setting_Type value : Setting_Type.values()) {
                if (value.getCode().equals(code)) {
                    return value.getDescribe();
                }
            }
            return null;
        }

        public enum ACCOUNT_TYPE {
            UWB_ACCOUNT(1, "人员定位账号"),
            ANONYMOUS_ACCOUNT(2, "匿名登录账号");

            private Integer code;
            private String describe;

            ACCOUNT_TYPE(Integer code, String describe) {
                this.code = code;
                this.describe = describe;
            }

            public Integer getCode() {
                return this.code;
            }
        }
    }

    public enum Maintain_Type {
        MINOR_MAINTAIN(1, "小保养"),
        MAJOR_MAINTAIN(2, "大保养");

        private int type;
        private String describe;

        Maintain_Type(int type, String describe) {
            this.type = type;
            this.describe = describe;
        }

        public int getType() {
            return this.type;
        }
    }

    public enum Logistics_Status {
        NOT_START(0, "物流任务未开始"),
        START(1, "物流任务开始"),
        ONGOING(2, "物流任务进行中"),
        COMPLETE(3, "物流任务完成"),
        REFUSE(4, "物流任务拒绝"),
        OVERTIME(5, "物流任务超时"),
        CANCEL(6, "物流任务取消");

        private int code;
        private String describe;

        Logistics_Status(int code, String describe) {
            this.code = code;
            this.describe = describe;
        }

        public int getCode() {
            return this.code;
        }
    }

    public enum Logistics_Approval_Status {
        Unapproved(1, "未审批"),
        Approved(2, "审批通过"),
        Rejection(3, "审批拒绝");

        private int code;
        private String describe;

        Logistics_Approval_Status(int code, String describe) {
            this.code = code;
            this.describe = describe;
        }

        public int getCode() {
            return this.code;
        }
    }
}
